package sunwin.yoms.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import sunwin.yoms.domain.publicty.NewsDomain;

import java.util.Date;
import java.util.List;

/**
 * Created by watson on 2015/7/27.
 */
@Repository
public interface NewsDao extends DaoBase<NewsDomain> {
    List<NewsDomain> getDomainCollectionExtend(
            @Param("domain") NewsDomain domain,
            @Param("startTime") Date startTime,
            @Param("endTime") Date endTime
    );
    List<NewsDomain> getNewsByTypeId(@Param("newsTypeId") int newsTypeId);

    List<NewsDomain> getSportsCollectionExtend(
            @Param("domain") NewsDomain domain,
            @Param("startTime") Date startTime,
            @Param("endTime") Date endTime
    );
}
